package day7.Exer;

public class Javateacher extends Teacher {
    private String tool;
    private String subject;
    private String good;

    public Javateacher(String name,int age,String sex,String tool,String subject,String good){
        super(name,age,sex);
        this.tool=tool;
        this.subject=subject;
        this.good=good;
    }

    public String getTool() {
        return tool;
    }

    public void setTool(String tool) {
        this.tool = tool;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getGood() {
        return good;
    }

    public void setGood(String good) {
        this.good = good;
    }

    public void selfIntroduce(){
        super.selfIntroduce();
        System.out.println("精通"+getGood()+"教大家"+getSubject());
    }
    public void giveLession(){
        super.giveLession();
        System.out.println("使用"+getTool()+"给大家上"+getSubject()+"课");
    }
}
